﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true"
    CodeFile="ToDayList.aspx.cs" Inherits="Admin_ToDayList" EnableViewState="true"
    EnableEventValidation="true" %>

<%@ Register Assembly="NazSoft.Framework" Namespace="NazSoft.Framework.CustomGrid" TagPrefix="CustomGrid" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="actions">
        <asp:TextBox runat="server" ID="txtDate" />
        <asp:Button Text="Search" ID="btnSearch" CssClass="btn primary" runat="server" OnClick="btnSearch_Click" />
        <asp:Button ID="btnRefresh" Text="Refresh" CssClass="btn" runat="server" OnClick="btnRefresh_Click" />
    </div>
    <div>
    </div>
    <div>
        <CustomGrid:CustomGrid ID="CustomGrid1" runat="server" PageSize="10" OnPageIndexChanged="CustomGrid1_PageIndexChanged"
            PagerSettings-Mode="NextPreviousFirstLast" PagerSettings-Position="Top" OnPageIndexChanging="CustomGrid1_PageIndexChanging">
            <Columns>
                <asp:BoundField HeaderText="News Date" DataFormatString="{0:D}" DataField="CurrentDate" />
                <asp:TemplateField HeaderText="Action">
                    <ItemTemplate>
                        <a href="mapping.aspx?Id=<%# Eval("Id") %>">Mapping</a> &nbsp;&mdash;&nbsp; <a href="mapping.aspx?Id=<%# Eval("Id") %>">
                            Preview</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </CustomGrid:CustomGrid>
    </div>
    <script type="text/javascript">
        $(function () {
            $("#txtDate").datepicker();
        });
    </script>
</asp:Content>
